﻿using AutoMapper;
using Books.Books;
using Books.Brands;
using Books.Gouwu;
using Books.Guige;
using Books.Orders;

namespace Books;

public class BooksApplicationAutoMapperProfile : Profile
{
    public BooksApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap<Book, BookDto>();
        CreateMap<CreateUpdateBookDto, Book>();
        CreateMap<CreateUpdateBrandDto, Brand>();
        CreateMap<Brand, BrandDto>();

        CreateMap<Gou, GouDto>();
        CreateMap<CreateUpdateGouDto, Gou>();

        CreateMap<Gui, GuiDto>();
        CreateMap<CreateUpdateGuiDto, Gui>();
    }
}
